package com.veepeak.server.repository;

import com.veepeak.server.common.BaseRepository;
import com.veepeak.server.domain.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends BaseRepository<User,String> {
    User getFirstByEmailAndPassword(String email,String password);
    User getFirstByEmail(String email);

    Page<User> findByEmailIsLike(Pageable pageable, String email);
}
